<?php if(!empty($messages)): ?>

<div id="messages_scrollbar">
  <div class="scrollbar"><div class="track"><div class="thumb"><div class="end"></div></div></div></div>
  <div class="viewport">
    <div class="overview">
<!--      <div id="messages-next-page" page="0">--><?php //print t('next page'); ?><!--</div>-->
      <?php print $messages; ?>
      <div id="messages-add"></div>
    </div>
  </div>
</div>
<div>
  <?php print render($form); ?>
</div>

<?php endif; ?>